﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Quan_ly_linh_kien_kem_theo.aspx.cs" Inherits="ChucNang_Quan_ly_linh_kiem_kem_theo" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
    <style type="text/css">
        .style1
        {
            height: 24px;
            width: 85px;
        }
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <table cellspacing="0" cellpadding="2" style="width:100%;" class="cssTable" border="0">
        <tr>
            <td colspan="5" class="cssPageTitleBG">
                <asp:label id="v_lbl_nhan_loc_doi_tac" runat="server" Text="Lọc dữ liệu Thiết bị" CssClass="cssPageTitle"/>
            </td>
        </tr>
        <tr>
            <td align="right" width="20%">
                    <asp:label id="Label4" CssClass="cssManField" runat="server" 
                Text="Tên thiết bị" />
            </td>
            <td class="style1" width="20%">
                <asp:TextBox ID="m_txt_ten_thiet_bi" runat="server"  Width="96%" 
                    CssClass="cssTextBox"></asp:TextBox>
            </td>
            <td width="20%">
                    <asp:label id="Label3" CssClass="cssManField" runat="server" 
                Text="Từ khóa tìm kiếm" />
            </td>
            <td width="20%">
                <asp:TextBox ID="m_txt_tu_khoa_tim_kiem" runat="server"  
                    Width="96%" CssClass="cssTextBox"></asp:TextBox>
            </td>
            <td width="20%">
                      <asp:label id="lbl_tu_khoa" CssClass="cssLabel" runat="server" 
                Text="(Từ khóa tìm kiếm: Tên máy, model)"/>
            </td>
        </tr>
        <tr>
            <td colspan="5" align="center">
                <asp:button id="m_btn_xem_toan_bo" accessKey="v" CssClass="cssButton" 
                            runat="server" Width="98px" Text="Xem toàn bộ" Height="22px" 
                    />
                &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
                <asp:button id="m_btn_loc_du_lieu" accessKey="l" CssClass="cssButton" 
                            runat="server" Width="98px" Text="Lọc dữ liệu" 
                                    Height="22px"/>
                &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
			    <asp:button id="m_btn_xuat_excel" accessKey="x" CssClass="cssButton" 
                            runat="server" Width="98px" Text="Xuất danh sách " Height="22px"/>
                &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
                                        
            </td>
        </tr>
        <tr>
		<td class="cssPageTitleBG" colspan="5">
		    <asp:label id="m_lbl_nhan_doi_tac" runat="server" CssClass="cssPageTitle" 
                Text="Danh sách các linh kiện kèm theo"/>
		</td>
	    </tr>
        <tr>
		<td align="center" colspan="5" valign="top">
		    <asp:GridView ID="m_grv_dm_doi_tac" runat="server" CellPadding="4" 
                AutoGenerateColumns="False" Width="98%" BackColor="White" BorderColor="#3366CC" 
                BorderStyle="None" BorderWidth="1px">
                <Columns>
                    <asp:TemplateField HeaderText="Mã thiết bị">
                        <ItemTemplate><%# Container.DataItemIndex + 1 %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="HO_VA_TEN_DEM" HeaderText="Tên thiết bị" />
                    <asp:BoundField DataField="TEN_NHAN_VIEN" HeaderText="Tên linh kiện" />
                      <asp:TemplateField HeaderText="Sửa">
                        <ItemTemplate>
                            <asp:LinkButton runat="server" ID="m_lbt_chi_tiet" CommandName="Update" ToolTip="Sửa" CausesValidation="false"><center><img src="../Images/document-edit.png" width="20px" height="20px" alt="Sửa" /></center></asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Xóa">
                         <ItemTemplate>
                            <asp:LinkButton runat="server" ID="m_lbt_xoa" CommandName="Delete" OnClientClick="return confirm ('Các dữ liệu liên quan cũng sẽ bị xóa. Bạn có thực sự muốn xóa ?')" ToolTip="Xóa dự án này" CausesValidation="false"><center><img src="../Images/del.png" width="20px" height="20px" alt="Xóa" /></center></asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
                <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
                <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
                <RowStyle BackColor="White" ForeColor="#003399" />
                <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />

                <SortedAscendingCellStyle BackColor="#EDF6F6" />
                <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
                <SortedDescendingCellStyle BackColor="#D6DFDF" />
                <SortedDescendingHeaderStyle BackColor="#002876" />

            </asp:GridView> 
        </td>
	    </tr>
    </table>
</asp:Content>

